<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>搜索结果</title>
</head>
<s:url var="url1" action="searchthree">
	<s:param name="region" value="#request.region"></s:param>
	<s:param name="lowerBound" value="#request.lowerBound"></s:param>
	<s:param name="upperBound" value="#request.upperBound"></s:param>
	<s:param name="decoration" value="#request.decoration"></s:param>
	<s:param name="floor" value="#request.floor"></s:param>
	<s:param name="page" value="#session.page-1"></s:param>
</s:url>
<s:url var="url2" action="searchthree">
	<s:param name="region" value="#request.region"></s:param>
	<s:param name="lowerBound" value="#request.lowerBound"></s:param>
	<s:param name="upperBound" value="#request.upperBound"></s:param>
	<s:param name="decoration" value="#request.decoration"></s:param>
	<s:param name="floor" value="#request.floor"></s:param>
	<s:param name="page" value="#session.page+1"></s:param>
</s:url>
<body>
	<h1>搜索结果</h1>
	<a href="index.jsp">返回继续搜索</a>
	<s:a href="%{url1}">上一页</s:a>
	<s:property value="#session.page" />
	<s:a href="%{url2}">下一页</s:a>
	<s:iterator value="#request.rlts" id="info">
		<table>
			<tr>
				<td>地区：</td>
				<td><s:property value="#info.region" /></td>
			</tr>
			<tr>
				<td>装潢情况：</td>
				<td><s:property value="#info.decoration" /></td>
			</tr>
			<tr>
				<td>楼层：</td>
				<td><s:property value="#info.build" /></td>
			</tr>
			<tr>
				<td>价格：</td>
				<td><s:property value="#info.price" /></td>
			</tr>
			<tr>
				<td>房型：</td>
				<td><s:property value="#info.house" /></td>
			</tr>
			<tr>
				<td>联系方式：</td>
				<td><s:property value="#info.commlink" /></td>
			</tr>
			<tr>
				<td>图片：</td>
				<td><s:property value="#info.imglink" /></td>
			</tr>

		</table>
		<hr />
	</s:iterator>
</body>
</html>